package com.bw.goods.mvvm.model;

import com.bw.goods.mvvm.model.entity.CategoryEntity;
import com.bw.goods.mvvm.model.entity.CategoryValuesEntity;
import com.bw.goods.mvvm.model.entity.HomeGoodsEntity;
import com.bw.mvvm_comom.entity.BaseEntity;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface Api {
    //商品列表
//    http://118.195.161.134:8077/goods/getGoodsList
    @POST("goods/getGoodsList")
    Observable<HomeGoodsEntity> requestHomeGoods(@Body RequestBody body);

//    http://118.195.161.134:8077/cart/add
    @POST("cart/add")
    Observable<BaseEntity> requestAddCar(@Body RequestBody body);

    //分类
//    http://118.195.161.134:8077/category/getCategory
    @POST("category/getCategory")
    Observable<CategoryEntity> requsetCategory(@Body RequestBody body);

    @POST("category/getCategory")
    Observable<CategoryValuesEntity> requsetValueCategory(@Body RequestBody body);
}
